<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ContentNoteList.ascx.cs" Inherits="IGlobalist.Cms.Admin.Control.ContentNoteList" %>

<table style="width:50%">
<tr><td valign="top">
    <table></table>
         <asp:GridView ID="gvNode" runat="server"  Width="100%" AllowPaging="false" AutoGenerateColumns="False"
                CellPadding="6" ForeColor="#333333" OnRowCommand="gvNode_RowCommand" BorderWidth="0" BorderColor="white" >
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:TemplateField >
                        <ItemTemplate>
                            <tr><td><b>Title:</b> <asp:Label ID="lblName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>'></asp:Label></td> <td> Create date : <asp:Label ID="Label3" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.CreatedDate") %>'></asp:Label></td>
                                <td> 
                                    <asp:ImageButton ID="imgEdit" ImageUrl="~/Admin/Images/edit.gif"  runat="server" CommandName="editNode" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Name") %>' />
                                     <asp:ImageButton ID="ingDelete" ImageUrl="~/Admin/Images/delete.gif" runat="server" OnClientClick="return confirm('Are you sure you want to delete?');"  CommandName="delNode" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.Name") %>' /></td>
                             </tr>
                            <tr><td colspan="3"><b>Description : </b><asp:Label ID="lblDescrption" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Description") %>'></asp:Label></td></tr>
                       </ItemTemplate>
                    </asp:TemplateField>                                                                                         
                </Columns>
            </asp:GridView>   
                    
   </td></tr>
    
    <tr><td>
    <table>
        <tr><td><asp:Label ID="Label1" runat="server" Text="Title"></asp:Label></td><td><asp:TextBox ID="tbName" runat="server"></asp:TextBox>
            <asp:Label ID="lblError" runat="server" ForeColor="red" Text=""></asp:Label></td></tr>
        <tr><td valign="top"><asp:Label ID="Label2" runat="server" Text="Description"></asp:Label></td><td><asp:TextBox ID="tbDescription" runat="server" Rows="4" Height="100px" TextMode="MultiLine" ></asp:TextBox></td></tr>
        
        <tr><td align="center" colspan="2"> <asp:Button ID="btnSave" runat="server" Text="Save Node" OnClick="btnSave_Click" /> </td></tr>
         

    </table></td></tr> 
 
</table>
